﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DAL;
using BLL;
namespace PhongMachTu.GUI
{
    public partial class DangKi : Form
    {
        public DangKi()
        {
            InitializeComponent();
        }
        TaiKhoanBLL tkBLL;
        
        private void btnDangKy_Click(object sender, EventArgs e)
        {
            TAIKHOAN tk = new TAIKHOAN();
            tk.HoTen = txtHoTen.Text;
            tk.MatKhau = txtMatKhau.Text;
            tk.SDT = txtSDT.Text;
            tk.TenDangNhap = txtTenDN.Text;
            tk.ChucVu = cbChucVu.SelectedText;
            tkBLL = new TaiKhoanBLL();
            tkBLL.ThemTaiKhoan(tk);

        }

        private void DangKi_Load(object sender, EventArgs e)
        {
            cbChucVu.Items.Add("Bác Sĩ");
            cbChucVu.Items.Add("Y Tá");
        }

        private void cbChucVu_SelectedIndexChanged(object sender, EventArgs e)
        {

     

 
        }
    }
}
